package cn.tedu.qxhouserent.passport.pojo.param;


import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@Accessors(chain = true)

public class PermissionUpdateInfoParam implements Serializable {

    @NotEmpty(message = "修改权限失败，请填写名称！")
    @Pattern(regexp = "后台管理-*-*", message = "修改权限失败，名称不合法!")
    private String name;

    @NotEmpty(message = "修改权限失败，请填写内容！")
    @Pattern(regexp = "/(ams|pms)/*/*",
            message = "修改权限失败，内容不合法!")
    private String value;

    @NotEmpty(message = "修改权限失败,请填写简介!")
    private String description;

    @NotNull(message = "修改权限失败,请填写排序序号")
    private Integer sort;

    @NotNull(message = "修改权限失败,请选择那些角色拥有该权限!")
    private Long[] roleIds;



}
